<div class="layui-card">
    <div class="layui-card-body">
        <div>
            <form action="{:url('question/admin.questionlist/delquest',['paper_id'=>$paperId])}" method="post" class="layui-form" id="cp-form">
                <div class="layui-btn-group">
                    <a href="{:url('question/admin.questionlist/addquest',['paper_id'=>$paperId])}" class="layui-btn layui-btn-xs">
                        <i class="layui-icon layui-icon-addition"></i>
                        添加题目
                    </a>
                    <button class="layui-btn layui-btn-xs layui-btn-danger ">
                        <i class="layui-icon">&#xe640;</i>
                        删除题目
                    </button>
                    {if $paperId}
                    <a href="javascript:history.go(-1);" class="layui-btn layui-btn-xs layui-btn-primary" >返回</a>
                    {/if}
                </div>
                <table class="layui-table">
                    <thead>
                    <tr>
                        <th width="10"></th>
                        <th width="300">科目名称</th>
                        <th >操作</th>
                    </tr>
                    </thead>
                    <tbody>
                    {volist name="questList" id='v'}
                    <tr>
                        <td align="center" valign="middle">
                            <input type="checkbox" name="idList[]" class="layui-input" lay-skin="primary" value="{$v.id}">
                        </td>
                        <td>{$v.title|raw}</td>
                        <td>
                            <a href="{:url('question/admin.questionlist/editquest',['id'=>$v['id'],'paper_id'=>$paperId])}" class="layui-btn layui-btn-xs layui-btn-danger clearExceptionNode">
                                <i class="layui-icon layui-icon-edit"></i>
                                编辑
                            </a>
                            <a href="{:url('question/admin.questionlist/addquest',['level'=>$v['id'],'paper_id'=>$paperId])}" class="layui-btn layui-btn-xs  ">
                                <i class="layui-icon layui-icon-edit"></i>
                                添加子题目
                            </a>
                        </td>
                    </tr>
                    {/volist}
                    </tbody>
                </table>
            </form>
            {$questList|raw}
        </div>
    </div>
</div>